package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.List;

/**
 * 出库订单实体类
 */
@TableName("t_sell")
public class SellOrderBean {
    /**出库订单编号*/
    @TableId(value = "pk_sellId",type = IdType.AUTO)
    private Integer sellId;
    /**销售员真实姓名*/
    @TableField("s_realName")
    private String realName;
    /**销售时间*/
    @TableField("s_date")
    private LocalDate date=LocalDate.now();
   /**订单总额*/
   @TableField("s_totalPrice")
    private Integer totalPrice;
    /**送货地址*/
    @TableField("s_address")
   private String address;
    /**客户名称*/
    @TableField("s_clientName")
    private String clientName;
    /**销售订单明细*/
    @TableField(exist = false)
    private List<OutOrderInfoBean> outOrderInfoList;

    public SellOrderBean() {
    }

    public SellOrderBean(String realName, Integer totalPrice, String address, String clientName) {
        this.realName = realName;
        this.totalPrice = totalPrice;
        this.address = address;
        this.clientName = clientName;
    }

    public Integer getSellId() {
        return sellId;
    }

    public void setSellId(Integer sellId) {
        this.sellId = sellId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public Integer getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Integer totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public List<OutOrderInfoBean> getOutOrderInfoList() {
        return outOrderInfoList;
    }

    public void setOutOrderInfoList(List<OutOrderInfoBean> outOrderInfoList) {
        this.outOrderInfoList = outOrderInfoList;
    }

    @Override
    public String toString() {
        return "SellOrderBean{" +
                "sellId=" + sellId +
                ", realName='" + realName + '\'' +
                ", date=" + date +
                ", totalPrice=" + totalPrice +
                ", address='" + address + '\'' +
                ", clientName='" + clientName + '\'' +
                ", outOrderInfoList=" + outOrderInfoList +
                "}\n";
    }
}
